<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
</head>
<body>
<h1>用户登录</h1>
<div>
    <form method="post"  th:action="doLogin" >
        用户名 :<input type="text" name="uname"> <br>
        密码: <input type="text" name="passwd"> <br>
        <input type="submit" value="登录">
    </form>
    <h3>
        <div th:text="${session.SPRING_SECURITY_LAST_EXCEPTION}"></div>
    </h3>
</div>
</body>
</html>
